<?php
	include '../classes/Authentication.php';
	session_start();
	$auth = new Authentication ();
	$auth->checkAuthentication ($_SERVER['PHP_SELF'], 1);
	
	$db = new DB_For_User();
	$id = $_GET['id'];
	
	$db->getTicketById($id)->deleteTicket();
	
	header('Location: tickets.php');
?>